from ultralytics import YOLO

model = YOLO("model/yolov8n.pt")

# 图像识别
results = model(['test.png'])
frame = results[0].plot()
print('初始化预测成功')